package com.taxshare.purchaser.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taxshare.mybatis.pager.PageRequest;
import com.taxshare.purchaser.entity.InvoiceBatchOperationEntity;
import com.taxshare.purchaser.entity.InvoiceCollectionEntity;
import com.taxshare.purchaser.view.dto.InvoiceCollectionQueryAllDTO;
import com.taxshare.purchaser.view.vo.InvoiceCollectionQueryAllVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YANG
 * @ClassName: CollectionMapper
 * @Description:
 * @since 2021-04-02
 */
@Mapper
public interface InvoiceCollectionMapper extends BaseMapper<InvoiceCollectionEntity> {

    int updateRecordNo(@Param("recordNo") String recordNo);

    //查询所有发票信息
    List<InvoiceCollectionQueryAllVO> invoiceCollectionQueryAll(PageRequest<InvoiceCollectionQueryAllDTO> query);

    int update(InvoiceBatchOperationEntity entity, UpdateWrapper<InvoiceBatchOperationEntity> updateWrapper);
}
